package demo2.impl;


import demo2.factory.CloudService;
import demo2.factory.FoodManage;
import demo2.factory.Fridge;
import demo2.factory.TemperControl;

public class IntelligentFridge extends Fridge implements CloudService, FoodManage, TemperControl {
    public IntelligentFridge(){};
    public IntelligentFridge(String brand,String type){
        super(brand,type);
    }
    @Override
    public void coldStorage() {
       System.out.println("智能冰箱冷藏室正在通过气味自动将不新鲜的食材调动到距离冰箱门近的地方。");
    }

    @Override
    public void freezing() {
        System.out.println("智能冰箱冷冻室正在自动智能除霜！");
    }

    @Override
    public void AdjustColdTemper(int temperature) {
        System.out.println(this.getBrand()+this.getType()+"冰箱通过电脑温控系统将冷藏温度设定为"+temperature+"。");
    }

    @Override
    public void AdjustFreezTemper(int temperature) {
        System.out.println(this.getBrand()+this.getType()+"冰箱通过电脑温控系统将冷冻温度设定为"+temperature+"。");
    }
    @Override
    public void service() {
        System.out.println(this.getBrand()+this.getType()+"冰箱正在统计食材存量，并通知附近超市上门补货。");

    }

    @Override
    public void ShowFoodInfo() {
        System.out.println(this.getBrand()+this.getType()+"正在统计食材种类、保质期，根据用户偏好推荐食谱显示在大屏幕。");

    }
}
